package com.itcam.interview.pro04thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author : Cammy.Wu
 * Description : 
 */

public class ThreadLocalDemo03 {

    public static void main(String[] args) {

        ExecutorService threadPool = Executors.newFixedThreadPool(3);
        try {

        }catch (Exception e){
            e.printStackTrace();
        }finally {
            threadPool.shutdown();
            threadPool.shutdownNow();

            // 生产级别，如何优雅停机，关闭线程池

        }
    }
}
